<?php
// Zend_Controller_Action_Helper_Abstract
// Zend_View_Helper_Abstract
class App_Helper_Course extends Zend_Controller_Action_Helper_Abstract {

   private $_view;

   public function __construct() {
      
      $this->pluginLoader = new Zend_Loader_PluginLoader();
   }

   public function details() {
      $fc = Zend_Controller_Front::getInstance();
      $request = $fc->getRequest();
      $controller = $request->getParam('controller');
      $action = $request->getParam('action');
      $course = $request->getParam('course');
      //return $controller . ":" . $action . ":" . $course;
      
      $cobj = new Model_Courses();
      $details = $cobj->findBy('id', $course);
      return $details[0];
   }
   
   public function flashList() {
      
   }
   
   public function render() {
      return "some html";
   }

   public function __toString() {
      return $this->render();
   }

}
